/* Copyright (c) 2006, 2009, Carl Burch. License information is located in the
 * com.cburch.logisim.Main source code and at www.cburch.com/logisim/. */
 
package com.cburch.logisim.comp;

public class ComponentEvent {
    private Component source;
    private Object oldData;
    private Object newData;

    public ComponentEvent(Component source) {
        this(source, null, null);
    }
    
    public ComponentEvent(Component source, Object oldData, Object newData) {
        this.source = source;
        this.oldData = oldData;
        this.newData = newData;
    }

    public Component getSource() {
        return source;
    }

    public Object getData() {
        return newData;
    }

    public Object getOldData() {
        return oldData;
    }
}
